package main

import (
	"sr/app"
	"sr/controllers"
)

//目录一
func main() {
	//中间件
	app.Service.CallGuard("Gateway").Action(app.Gateway.Action).CoverRetreat(app.Gateway.Reduce)
	app.Service.CallGuard("Exception").CoverRetreat(app.Exception.Listen)
	//路由
	app.Service.Guard("Gateway|Exception").BindController("/list", controllers.User.List)
	//监听服务
	app.Service.Address("127.0.0.1").Port("8000").Run()
}
